//
//  WSVideo.m
//  CharonTVProject
//
//  Created by karong on 2023/7/31.
//

#import "WSVideo.h"

@implementation WSVideo

+ (NSDictionary *)mj_objectClassInArray {
    return @{@"list":NSClassFromString(@"WSVideo")};
}

- (CGSize)cellSize {
    CGSize size = CGSizeZero;
    CGFloat width = width = floor((WSScreenWidth - 16 - 16 - 16) / 2.0f);
    CGFloat height = (width) * 4 / 3.0 + 39 + 34;
    size.width = width;
    size.height = height + 20;//這裡加20 是因為不知道什麼原因 第2行和第3行的間距不生效，所以minimumLineSpacingForSectionAtIndex就設置為0，cell抬高20高度
    return size;
}

- (UIEdgeInsets)inset {
    UIEdgeInsets inset = UIEdgeInsetsZero;
    inset.left = 16;
    inset.right = 16;
    return inset;
}

- (NSString *)intro {
    return @"";
}

- (BOOL)needPay {
    BOOL needPay = NO;
    if (WSIsNullOrEmpty(self.url)) {
        needPay = YES;
    }
    return needPay;
}
@end
